You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > CopyMtx Method > TVec.CopyMtx Method ([In] TMtx)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.CopyMtx Method ([In] TMtx)

Copy values from matrix.

Syntax
C#
Visual Basic
public void CopyMtx([In] TMtx Mtx);

Copy each of Mtx TMtx elements to the calling vector. The TMtxVecBase.Length and TMtxVec.ComplexComplex properties of the calling vector are set implicitly to match Mtx matrix. The same can be achieved by calling the Copy method.

var b,c: TVec; A: TMtx; begin CreateIt(b,c); CreateIt(A); try a.SetIt(2,2,False,[1,2,3,4]); b.CopyMtx(a); // b = [1,2,3,4] finally FreeIt(A); FreeIt(b,c); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!